import request from '@/utils/request'

export function list(type, params) {
  return request({
    url: `/business/task/list/${type}`,
    method: 'get',
    params
  })
}

export function info(id) {
  return request({
    url: `/business/task/${id}`,
    method: 'get'
  })
}

export function addOrUpdate(data) {
  return request({
    url: '/business/task/addOrUpdate',
    method: 'post',
    data
  })
}
